/*
 * @ProjectName: 编程学习
 * @Copyright:   2018 HangZhou xiazhaoyang Dev, Ltd. All Right Reserved.
 * @address:     http://xiazhaoyang.tech
 * @date:        2018/9/17 22:28
 * @email:       xiazhaoyang@live.com
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */
package com.capsule.chapter.extend;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiazhaoyang
 * @version V1.0
 * @date 2018/9/17 22:28
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人} 2018/9/17
 * @modify reason: {方法名}:{原因}
 * ...
 */
public class A {
    public A() {
        System.out.println("Class A");
    }
    {
        System.out.println("{} A");
        overrideMe("{}");
    }
    static{
        System.out.println("static A");
        overrideMeStatic("static");
    }

    public void overrideMe(String area){
        System.out.println("overrideMe A - " + area);
    }

    public static void overrideMeStatic(String area){
        System.out.println("overrideMeStatic A - " + area);
    }

    public static void main(String[] args) {
        new A();
        //static A
        //overrideMeStatic A - static
        //{} A
        //overrideMe A - {}
        //Class A
    }
}